/**
 * Copyright 2011 Poltman.Ltd; www.poltman.com. All rights reserved.		
 *
 * This file is part of the dspace-poltman project http://www.poltman.com.
 *
 * This is free software; you can redistribute it and/or modify it under
 * the terms of DuraSpace DSpace license detailed in the LICENSE and NOTICE 
 * files at the root of the source tree and available online at
 * http://www.dspace.org/license/
 * 
 */
package com.poltman.dscentral.db.service.pm.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import com.poltman.dscentral.db.entity.pm.EPersonMenuGroupsEntity;
import com.poltman.dscentral.db.repository.pm.EPersonMenuGroupsRepository;
import com.poltman.dscentral.db.service.pm.EPersonMenuGroupsService;

/**
 * 
 * @author z.ciok@poltman.com
 * @version $Revision: 1761 $
 *
 */
@Repository
@Service("epersonMenuGroupsService")
public class EPersonMenuGroupsServiceImpl implements EPersonMenuGroupsService {

	@Autowired
	private EPersonMenuGroupsRepository epersonMenuGroupsRepository;		
	
	@Override
	public List<EPersonMenuGroupsEntity> findByEpersonMenuGroupsId(Integer epersonMenuGroupsId) throws Exception {
		return epersonMenuGroupsRepository.findByEpersonMenuGroupsId(epersonMenuGroupsId);
	}
	
	@Override
	public EPersonMenuGroupsEntity save(EPersonMenuGroupsEntity epersonMenuGroupsId) throws Exception {
		return epersonMenuGroupsRepository.save(epersonMenuGroupsId);
	}
}
